package com.youlai.boot.modules.distribution.dto.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * 类目分析响应VO
 * 
 * @author xiheforever
 * @since 2025-06-05
 */
@Schema(description = "类目分析响应VO")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CategoryAnalysisResponseVO {

    @Schema(description = "类目分析数据列表")
    private List<CategoryAnalysisDataVO> data;

    @Schema(description = "类目分析数据VO")
    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class CategoryAnalysisDataVO {

        @Schema(description = "类目名称", example = "美妆护肤")
        private String categoryName;

        @Schema(description = "品牌数量", example = "156")
        private Integer brandCount;

        @Schema(description = "品牌占比(%)", example = "25.6")
        private BigDecimal brandRatio;

        @Schema(description = "成交金额(万元)", example = "1256.78")
        private BigDecimal transactionAmount;

        @Schema(description = "金额占比(%)", example = "28.9")
        private BigDecimal amountRatio;

        @Schema(description = "平均转化率(%)", example = "15.67")
        private BigDecimal avgConversionRate;

        @Schema(description = "颜色代码", example = "#409eff")
        private String color;
    }
} 